<div class="pagebox questionListPage" ng-controller="listControl" id="fixed" when-scrolled="loadMore()" resize ng-style="resizeWithOffset(0)">
    <div class="headerMenuLeft" style="background-color: white;">
        <dl class="textOverflow" style="color: black">
            <a class="aClean" ng-click="goMenu()" style="color: black">派宝开放平台</a> >
            <a id="showDiv" class="aClean" ng-click="changeDiv()" style="color: black">自定义问答<img id="showDivImg" style="width:19px;" src="resource/images/blackDownArrow.png"></a>
        </dl>
    </div>
    <div class="headerMenu" style="background-color: white">
        <dl class="textOverflow">
            <a id="showUserDiv" class="aClean" title="{{title}}" ng-click="changeUserDiv()" style="color: black"><img class="robotIcon" src={{user.imageUrl}}>{{user.nickname}}<img id="showUserImg" style="width:19px;height: auto;" src="resource/images/blackDownArrow.png"></a>
        </dl>
    </div>
    <div class="container" id="hideDiv">
        <div class="content"><ul class="menuRobotsList">
            <li ng-repeat="m in menus">
                <a class="aClean" ng-click="goSecondMenu(m.id)">
                    <img class="conversation_boxL menuIcon"  src="{{m.imageUrl}}">
                    <dl ng-if="'' != m.menuName" title="{{m.menuName}}">
                        <span style="color: #0088CC" ng-if="'自定义问答' != m.menuName">{{m.menuName}}</span>
                        <span style="background-color: #7EA7D8;color: white;border-radius:8px;padding: 2px 5px 2px 5px" ng-if="'自定义问答' == m.menuName">{{m.menuName}}</span>
                    </dl>
                </a>
            </li>
        </ul></div>
        <s>
            <m></m>
        </s>
    </div>
    <div class="userDiv" id="hideUserDiv"><div class="userContainer">
        <div class="content">
            <ul>
                <li class="userLi">
                    <a ng-click="goChangePassowrd()" class="aClean">修改密码</a>
                </li>
                <li class="userLi">
                    <a ng-click="logOut()" class="aClean">注销</a>
                </li>
            </ul>
        </div>
        <s>
            <m></m>
        </s>
    </div></div>
    <section class="clearfix kRobotInfo" when-scroll-end="doRefresh">
        <section class="RobotInfoL">
            <img class="robotIcon" src={{robotIcon}} alt="">
            <h3 title="{{title}}">{{robotName}}</h3></section>
        <section class="RobotInfoC">
            <p>当前总计<span>{{totalNum}}条</span>自定义问答，已使用{{useNum}}条</p>
            <p>如有更多需要，请联系商务400-6189-602</p>
        </section>
        <section class="RobotInfoR"><a ui-sref="questionAdd({robotId:robotId})">
            <button><img src="resource/images/+1.png"></button>
        </a><a ui-sref="robotList">
            <button><img src="resource/images/return1.png"></button>
        </a></section>
    </section>
    <section class="SearchQus"><input ng-keydown="myKeydown($event)" ng-model="param" type="text" placeholder="搜索问题">
        <button ng-click="search()">查找</button>
    </section>
    <dl ng-if="'' != questions">
        <ul class="questionList">
            <li class="clearfix" ng-repeat="q in questions track by $index">
                <a ui-sref="questionEdit({robotId:robotId , questionId:q.id})">
                    <dl ng-if="q.state == 0">
                        <dd class="question">
                            <p>Q<span ng-bind="$index+1">1</span>：{{q.question}}&nbsp;&nbsp;
                                <button title="待审核"><img class="questionStatusIcon" src="resource/images/exclamation_warn.png"/></button>
                            </p>
                        </dd>
                        <dd class="answer"><p>A<span ng-bind="$index+1">1</span>：{{q.type}}{{q.answer}}</p></dd>
                    </dl>
                    <dl ng-if="q.state == 1">
                        <dd class="question"><p>Q<span ng-bind="$index+1">1</span>：{{q.question}}</p></dd>
                        <dd class="answer"><p>A<span ng-bind="$index+1">1</span>：{{q.type}}{{q.answer}}</p></dd>
                    </dl>
                    <dl ng-if="q.state == 2">
                        <dd class="question">
                            <p>Q<span ng-bind="$index+1">1</span>：{{q.question}}&nbsp;&nbsp;
                                <button title="审核不通过"><img src="resource/images/exclamation_error.png"/></button>
                            </p>
                        </dd>
                        <dd class="answer"><p>A<span ng-bind="$index+1">1</span>：{{q.type}}{{q.answer}}</p></dd>
                        <dd class="reason"><p>审核不通过原因：{{q.auditOpinion}}</p></dd>
                    </dl>
                    <dl ng-if="q.state == 3">
                        <dd class="question">
                            <p>Q<span ng-bind="$index+1">1</span>：{{q.question}}&nbsp;&nbsp;
                                <button title="已过期"><img src="resource/images/exclamation_error.png"/></button>
                            </p>
                        </dd>
                        <dd class="answer"><p>A<span ng-bind="$index+1">1</span>：{{q.type}}{{q.answer}}</p></dd>
                    </dl>
                </a>
                <section class="qutgroupBtn">
                    <button ng-click="deleteQuestion(q.id)"><img src="resource/images/icon-del.png"></button>
                </section>
            </li>
        </ul>
    </dl>
    <dl ng-if="'' == questions">
        <ul class="questionList">
            <h3>无问答</h3>
        </ul>
    </dl>
    <!--弹出确认框-->
    <div class="popboxbg" ng-hide="myVar">
        <div class="popbox">
            <div class="deltip">
                <p>确定删除？</p>
                <div class="groupBtn">
                    <button class="Btnloadding" ng-click="deleteConfirm()">是</button>
                    <button class="Btncanel" ng-click="deleteCanel()">否</button>
                </div>
            </div>
        </div>
    </div>
</div>
